package com.learn.mvc.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CommonHandler {
    Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("/common/request/one")
    public String one() {
        logger.debug("common request one");

        return "target";
    }

    @RequestMapping("/common/request/two")
    public String two() {
        logger.debug("common request two");

        return "target";
    }

    @RequestMapping("/common/request/two/aaa")
    public String twoAAA() {
        logger.debug("common request two aaa");

        return "target";
    }

    @RequestMapping("/common/request/two/bbb")
    public String twoBBB() {
        logger.debug("common request two bbb");

        return "target";
    }

    @RequestMapping("/common/request/two/bbb/111")
    public String twoBBB111() {
        logger.debug("common request two bbb");

        return "target";
    }

    @RequestMapping("/common/request/two/bbb/222")
    public String twoBBB222() {
        logger.debug("common request two bbb222");

        return "target";
    }

    @RequestMapping("/common/request/")
    public String two000() {
        logger.debug("common request 000");

        return "target";
    }
}
